textview: Call gtk_widget_size_allocate() on children widgets invariably
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Jul 2014 14:06:00 +0000 (16:06 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 10 Jul 2014 02:57:52 +0000 (22:57 -0400)
commit7178e342b15143db8f86cc560fe8e1e217d582a6
tree421d7c050b4df1341dcfdf3b0741af8064edcfe1
parentedc5cb4e473c8036e56eb86f4d16cf1c36ecb43e
textview: Call gtk_widget_size_allocate() on children widgets invariably

There was this hack, taken verbatim from GtkCList according to the comment,
that would recursively translate the allocation during scrolling, and set
it on children widgets through the direct gtk_widget_set_allocation() setter.

Since commit 4f89eb05cf8a, this has caused the wrong clipping areas to children
widgets of a textview. The reasons for this seem lost in time, and the approach
seems indeed wrong for windowed widgets as the repositioning of those windows
couldn't happen.

So replace all of this with just a gtk_widget_size_allocate() call, which does
work ok for the children widgets embedded in the "multiple views" gtk demo, and
ought to work for every other widget.

https://bugzilla.gnome.org/show_bug.cgi?id=732900
gtk/gtktextview.c